package quant.smart.crawl.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import quant.smart.crawl.domain.LmeService;
import quant.smart.crawl.model.Inventory;

@RestController
public class HttpController {
	
	@Autowired
	LmeService lmeService;
	
	//测试用
	@RequestMapping(value="/lme/{id}",method=RequestMethod.GET)
	public Inventory findById(@PathVariable String id){
		return lmeService.findById(id);
	}
}
